#pragma once
#include <iostream>

class Array {

public:

	Array(int size = 5);

	~Array();

	void append(int value);

	void popBack();

	void insert(int pos, int value);
	int find(int value);
	void remove( int pos);

	void show();

	int value(int pos);
		

	int size();

private:

	void expand(int newsize);

private:
	int m_count;
	int m_capacity;
	int *m_array;
};
